﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IEx;
using IEx.Model;

namespace IEx.ParserBuilder.Facebook
{
    public class FacebookRequestBuilder : DefaultRequestBuilder
    {
        public FacebookRequestBuilder()
            : base("POST", "application/x-www-form-urlencoded")
        {
        }

        public override void BeginBuildRequest(SourceItem item)
        {
            Repository announcementMgr = new Repository();
            DateTime latestDate = DateTime.Now ;
            if (string.IsNullOrEmpty(item.PrevResponseHtml))
            {
                //latestDate = announcementMgr.GetLastestDateAnnouncement(item.CompanyCode, item.SourceId, item.LangId);
            }

            this.InternalBuildRequest(item, latestDate, DateTime.Now);
        }

        protected void InternalBuildRequest(SourceItem item, DateTime from, DateTime to)
        {
        }

    }    
}
